\(\int -2 \, dx\) [4]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [A] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 1, antiderivative size = 3 \[ \int -2 \, dx=-2 x \]

[Out]

-2*x

Rubi [A] (verified)

Time = 0.00 (sec) , antiderivative size = 3, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 1.000, Rules used = {8} \[ \int -2 \, dx=-2 x \]

[In]

Int[-2,x]

[Out]

-2*x

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rubi steps \begin{align*} \text {integral}& = -2 x \\ \end{align*}

Mathematica [A] (verified)

Time = 0.00 (sec) , antiderivative size = 3, normalized size of antiderivative = 1.00 \[ \int -2 \, dx=-2 x \]

[In]

Integrate[-2,x]

[Out]

-2*x

Maple [A] (verified)

Time = 0.00 (sec) , antiderivative size = 4, normalized size of antiderivative = 1.33

method result size
default \(-2 x\) \(4\)
norman \(-2 x\) \(4\)
risch \(-2 x\) \(4\)
parallelrisch \(-2 x\) \(4\)

[In]

int(-2,x,method=_RETURNVERBOSE)

[Out]

-2*x

Fricas [A] (verification not implemented)

none

Time = 0.21 (sec) , antiderivative size = 3, normalized size of antiderivative = 1.00 \[ \int -2 \, dx=-2 \, x \]

[In]

integrate(-2,x, algorithm="fricas")

[Out]

-2*x

Sympy [A] (verification not implemented)

Time = 0.02 (sec) , antiderivative size = 3, normalized size of antiderivative = 1.00 \[ \int -2 \, dx=- 2 x \]

[In]

integrate(-2,x)

[Out]

-2*x

Maxima [A] (verification not implemented)

none

Time = 0.21 (sec) , antiderivative size = 3, normalized size of antiderivative = 1.00 \[ \int -2 \, dx=-2 \, x \]

[In]

integrate(-2,x, algorithm="maxima")

[Out]

-2*x

Giac [A] (verification not implemented)

none

Time = 0.29 (sec) , antiderivative size = 3, normalized size of antiderivative = 1.00 \[ \int -2 \, dx=-2 \, x \]

[In]

integrate(-2,x, algorithm="giac")

[Out]

-2*x

Mupad [B] (verification not implemented)

Time = 0.00 (sec) , antiderivative size = 3, normalized size of antiderivative = 1.00 \[ \int -2 \, dx=-2\,x \]

[In]

int(-2,x)

[Out]

-2*x